<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<!-- 开发环境版本，包含了有帮助的命令行警告 -->
		<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
		<!-- <script type="module">
		  import Vue from 'https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.esm.browser.js'
		</script> -->
	</head>
	<body>
		<div id="app">
			{{msg}}
			<my-comname></my-comname>
		</div>
		<div id="app-2">
			<my-comname></my-comname>
			<span v-bind:title="message">
				鼠标悬停几秒钟查看此处动态绑定的提示信息！
			</span>
		</div>
	</body>
	<script>
		Vue.component("my-comname",{
			data:function(){
				return {
					count:0
				}				
			},
			template:'<button v-on:click="count++">你点击了{{count}}次</button>'			
		});
		var app = new Vue({
			el: '#app',
			data: {
				msg: 'hello world!',
				visitcount:0,
				hideCompletedTodos:false,
				todos:[],
				error:null
			},
			template:'<h1>gheng</h1>'
		});
		var app2 = new Vue({
			el: '#app-2',
			data: {
				message: '页面加载于 ' + new Date().toLocaleString()
			}
		})
	</script>
</html>
